package com.czxy.user.feign;

import com.czxy.domain.TbCandidates;
import com.czxy.findjob.vo.BaseResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "candidates-service",path = "/candidates")
public interface CandidiatesFeign {
    @GetMapping("/{id}")
    @ApiOperation(value = "根据id查询用户信息")
    public BaseResult<TbCandidates> getById(@PathVariable("id") Integer id);
    @PostMapping("/save")
    public BaseResult<Integer> save(@RequestBody TbCandidates tbCandidates);
}
